home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 11
/
CU Amiga Magazine's Super CD-ROM 11 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-06].iso
/
www
/
http
/
www.amigasupport.com
/
software
/
arc
/
bmpdt.lha
/
BMPdt
/
Source
/
getbmp.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-12
|
1KB
|
55 lines
/*
** includes + classbase definition for the bmp.datatype
*/
#include <exec/types.h>
#if !defined(__GNUC__)
#define REG(x)
#else
#define REG(x) asm(#x)
#endif
#include <exec/memory.h>
#include <dos/dos.h>
#include <graphics/gfx.h>
#include <datatypes/pictureclass.h>
#include <datatypes/pictureclassext.h>
struct ClassBase {
struct Library cb_Library;
UWORD cb_Pad1;
BPTR cb_SegList;
struct ExecBase *cb_SysBase;
struct DosLibrary *cb_DOSBase;
struct IntuitionBase *cb_IntuitionBase;
struct GfxBase *cb_GfxBase;
struct UtilityBase *cb_UtilityBase;
struct Library *cb_DataTypesBase;
struct Library *cb_SuperClassBase;
struct IClass *cb_BMPClass;
struct SignalSemaphore cb_Lock;
UWORD cb_Pad2;
};
#define DATATYPES_BASE_NAME cb->cb_DataTypesBase
#include <proto/datatypes.h>
#define GRAPHICS_BASE_NAME cb->cb_GfxBase
#include <proto/graphics.h>
#define UTILITY_BASE_NAME cb->cb_UtilityBase
#include <proto/utility.h>
#define EXEC_BASE_NAME cb->cb_SysBase
#include <proto/exec.h>
#define DOS_BASE_NAME cb->cb_DOSBase
#include <proto/dos.h>
/*
** our `anchor'
*/
REGISTER struct ClassBase *cb REG(a4);